#include <stdio.h>
#include <xtables.h>

/// Called from xtables on help request.
static void help(){
	printf("LAGZIFY takes no options.\n \
	Configure via /sys/lagzor");
}

/// Called from xtables, should check and read all passed params
/// but we have none (at least for now).
static int parse(int c, char **argv, int invert, unsigned int *flags,
                 const void *entry, struct xt_entry_target **target){
	return 0;//always parsed successfuly
}

//target descriptor
static struct xtables_target lagzify_target = {
	.version       = XTABLES_VERSION, //MUST BE LIKE THIS
	.name          = "LAGZIFY", //same, as in kernel module
	.family        = AF_UNSPEC,// any proto?
	.size          = XT_ALIGN(0),
	.userspacesize = XT_ALIGN(0),
	.help          = help,
	.parse         = parse
};

///Called from xtables as init funtion
static void _init(void){
	xtables_register_target(&lagzify_target);
}
